import service from '@/utils/request'

// @Tags OsMenu
// @Summary 创建osMenu表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.OsMenu true "创建osMenu表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /osMenu/createOsMenu [post]
export const createOsMenu = (data) => {
  return service({
    url: '/osMenu/createOsMenu',
    method: 'post',
    data
  })
}

// @Tags OsMenu
// @Summary 删除osMenu表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.OsMenu true "删除osMenu表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /osMenu/deleteOsMenu [delete]
export const deleteOsMenu = (params) => {
  return service({
    url: '/osMenu/deleteOsMenu',
    method: 'delete',
    params
  })
}

// @Tags OsMenu
// @Summary 批量删除osMenu表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除osMenu表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /osMenu/deleteOsMenu [delete]
export const deleteOsMenuByIds = (params) => {
  return service({
    url: '/osMenu/deleteOsMenuByIds',
    method: 'delete',
    params
  })
}

// @Tags OsMenu
// @Summary 更新osMenu表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.OsMenu true "更新osMenu表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /osMenu/updateOsMenu [put]
export const updateOsMenu = (data) => {
  return service({
    url: '/osMenu/updateOsMenu',
    method: 'put',
    data
  })
}

// @Tags OsMenu
// @Summary 用id查询osMenu表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.OsMenu true "用id查询osMenu表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /osMenu/findOsMenu [get]
export const findOsMenu = (params) => {
  return service({
    url: '/osMenu/findOsMenu',
    method: 'get',
    params
  })
}

// @Tags OsMenu
// @Summary 分页获取osMenu表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取osMenu表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /osMenu/getOsMenuList [get]
export const getOsMenuList = (params) => {
  return service({
    url: '/osMenu/getOsMenuList',
    method: 'get',
    params
  })
}
